package com.wxp.cloud.stream.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.stereotype.Component;

/**
 * wxp消费者配置类
 *
 * @author wxp
 * @version 1.0
 * @description: wxp消费者配置类
 * @date 2022-12-27 18:37
 */
@Slf4j
@Component
public class WxpConsumer {

    @StreamListener(Sink.INPUT)
    public void onMessage(String message) {
        log.info("收到消息：{}", message);
    }


}
